package com.dzt.androidframework.activity;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.view.View;

import com.dzt.androidframework.R;

import org.xutils.view.annotation.ViewInject;

public class MvpActivity extends ActivityTitle {

	@ViewInject(R.id.fab)
	private FloatingActionButton fab;

	@Override
	protected int getLayoutId() {
		return R.layout.activity_mvp;
	}

	@Override
	protected void initParams() {
		setTitleView(R.string.menu_5);
		fab.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View view) {
				Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
						.setAction("Action", null).show();
			}
		});
	}

	@Override
	protected void initData(Bundle savedInstanceState) {

	}

	@Override
	protected String[] initPermissions() {
		return null;
	}
}
